/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Nacos4002Controller {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/test/{id}")
    public String test(@PathVariable("id") int id) {
        return serverPort + "test" + id;
    }
}
